<template>
  <view class="dk-view-video">
	<video :src="videoPath"  :style="_style"></video>
  </view>
</template>

<script>
export default {
  name: 'DkMinVideo',
  props: {
    poster: {
      default: '',
      type: String,
    },
    isHeight: {
      default: false,
      type: Boolean,
    },
    height: {
      default: 0,
      type: Number,
    },
    videoPath: {
      default: '',
      type: String,
    },
  },
  data() {
    return {}
  },
  computed: {
    _style() {
      const style = {
		  width:'100%'
	  }
      if (this.height && this.isHeight) {
        style.height = this.height + 'px'
      } else {
        style.height = '240px'
      }
      return style
    },
  },
  mounted() {},
  methods: {},
}
</script>
